#include <stdio.h>
#include <unistd.h>
#include <string.h>


int main()
{

    const char* fstr = "hello fwrite\n";
    const char* str = "hello write\n";

    printf("hello printf\n");
    sleep(2);
    fprintf(stdout,"hello fprintf\n");
    sleep(2);
    fwrite(fstr,strlen(fstr),1,stdout);
    sleep(2);


    write(1,str,strlen(str));
    sleep(5);

    //close(1);

    //fork();
   // while(1)
   // {
   //     printf("hehe");
   //     close(1);
   // }
    return 0;
}
